From 89b537bd8a89c87c6c16baf2c6395164ecc40410 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Mar 2020 14:29:37 -0400 Subject: [PATCH] Fix the action test We have a test that enumerates the GtkText actions, so when a new open appears, the test needs to be updated. --- testsuite/gtk/action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testsuite/gtk/action.c b/testsuite/gtk/action.c index 23a78fa23e..f15dce7ac1 100644 --- a/testsuite/gtk/action.c +++ b/testsuite/gtk/action.c @@ -360,6 +360,7 @@ test_introspection (void) } expected[] = { { GTK_TYPE_TEXT, "text.undo", NULL, NULL }, { GTK_TYPE_TEXT, "text.redo", NULL, NULL }, + { GTK_TYPE_TEXT, "menu.popup", NULL, NULL }, { GTK_TYPE_TEXT, "clipboard.cut", NULL, NULL }, { GTK_TYPE_TEXT, "clipboard.copy", NULL, NULL }, { GTK_TYPE_TEXT, "clipboard.paste", NULL, NULL }, @@ -378,9 +379,9 @@ test_introspection (void) &property)) { g_assert (expected[i].owner == owner); - g_assert (strcmp (expected[i].name, name) == 0); - g_assert (g_strcmp0 (expected[i].params, params ? g_variant_type_peek_string (params) : NULL) == 0); - g_assert (g_strcmp0 (expected[i].property, property) == 0); + g_assert_cmpstr (expected[i].name, ==, name); + g_assert_cmpstr (expected[i].params, ==, params ? g_variant_type_peek_string (params) : NULL); + g_assert_cmpstr (expected[i].property, ==, property); i++; } g_assert (i == G_N_ELEMENTS (expected)); -- 2.30.2